<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //比较运算符运算的结果是一个布尔值
        console.log(1<2);
        console.log(1>2);
        console.log(1>=2);
        console.log(1<=2);
        console.log(1 == '1');//JS中的==会转型，要求值和数据类型可以不一致
        console.log(1 != 2);
        console.log(1 === '1');//全等，要求值和数据类型都一致
    </script>
</body>
</html>